@font-face {
  font-family: 'Cormorant Infant';
  src: url('CormorantInfant-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Cormorant Infant';
  src: url('CormorantInfant-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Cormorant Infant';
  src: url('CormorantInfant-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

:root {
  --text-color: rgba(255, 255, 255, 0.95);
  --accent-color: #64ffda;
  --button-bg: rgba(255, 255, 255, 0.1);
  --button-hover: rgba(255, 255, 255, 0.2);
  --star-color-1: rgba(255, 255, 255, 0.8);
  --star-color-2: rgba(173, 216, 230, 0.6);
  --star-color-3: rgba(144, 238, 144, 0.4);
  --star-core-1: rgba(255, 255, 255, 1);
  --star-core-2: rgba(173, 216, 230, 0.8);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cormorant Infant', serif;
  min-height: 100vh;
  color: var(--text-color);
  overflow: hidden;
  background: #000;
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: -3;
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.star {
  position: absolute;
  width: 100px;
  height: 100px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) translateZ(0);
  z-index: -1;
  pointer-events: none;
  will-change: left, top, transform;
}

.star::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center,
    var(--star-color-1) 0%,
    var(--star-color-2) 20%,
    var(--star-color-3) 40%,
    transparent 70%);
  border-radius: 50%;
  animation: starPulse 3s ease-in-out infinite;
  filter: blur(5px);
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.star::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at center,
    var(--star-core-1) 0%,
    var(--star-core-2) 50%,
    transparent 100%);
  border-radius: 50%;
  animation: starCore 2s ease-in-out infinite;
}

@keyframes starPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.9;
  }
}

@keyframes starCore {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
  }
}

/* Navigation Buttons */
.nav-buttons {
  position: fixed;
  top: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1000;
}

.nav-row {
  display: flex;
  gap: 1rem;
}

.nav-button {
  opacity: 0.85;
  transition: all 0.3s ease;
  display: block;
}

.nav-button:hover {
  opacity: 1;
  transform: scale(1.05);
}

.nav-button img {
  display: block;
  height: 160px;
  width: auto;
}

/* Audio Player Styles */
.audio-player {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1.2rem;
  border: none;
  border-radius: 50px;
  z-index: 1000;
}

.audio-toggle {
  background: var(--button-bg);
  border: none;
  color: var(--text-color);
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: all 0.3s ease;
  border-radius: 50%;
}

.audio-toggle:hover {
  opacity: 1;
  transform: scale(1.1);
  background: var(--button-hover);
}

.audio-next {
  background: var(--button-bg);
  border: none;
  color: var(--text-color);
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  margin-right: 0.5rem;
}

.audio-next:hover {
  transform: scale(1.1);
  background: var(--button-hover);
}

.audio-info {
  width: 200px;
  overflow: hidden;
  color: var(--text-color);
  font-size: 0.9rem;
  opacity: 0.8;
}

.audio-title {
  font-family: 'Cormorant Infant', serif;
  font-weight: 500;
  white-space: nowrap;
  display: inline-block;
  animation: none;
  color: var(--text-color);
}

.audio-title.scrolling {
  animation: scrollText 20s linear infinite;
  white-space: nowrap;
  display: inline-block;
}

@keyframes scrollText {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Cursor sparkle effect */
.cursor-sparkle {
  position: fixed;
  pointer-events: none;
  background: radial-gradient(circle at center, 
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0) 100%);
  border-radius: 50%;
  width: 8px;
  height: 8px;
  z-index: 1000;
  animation: sparkle 1s linear forwards;
  mix-blend-mode: screen;
}

@keyframes sparkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .nav-buttons {
    top: 10px;
    left: 10px;
    gap: 0.5rem;
  }

  .nav-button img {
    height: 120px;
  }

  .star {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 480px) {
  .nav-button img {
    height: 100px;
  }

  .star {
    width: 60px;
    height: 60px;
  }

  .audio-toggle,
  .audio-next {
    width: 25px;
    height: 25px;
  }

  .audio-info {
    width: 120px;
  }
}